package com.free.semantic.common;

import com.google.common.collect.Lists;
import com.google.common.collect.Sets;

import java.util.ArrayList;
import java.util.List;
import java.util.Set;

public class Ls {

    public static <T> List<T> of(T... value) {
        return Lists.newArrayList(value);
    }

    public static <T> Set<T> ofSet(T... value) {
        return Sets.newHashSet(value);
    }

    public static <T> List<T> of(List<T>... value) {
        List<T> result = new ArrayList<>();
        for (List<T> list : value) {
            result.addAll(list);
        }
        return result;
    }


}
